package com.ynny.example02;

public class FruiTest {
    public static void main(String[] args) {

        Fruit fruit = new Fruit();
        fruit.setName("橘子");
        fruit.setArea("广西");
        fruit.setPrice(6);
        System.out.println(fruit);


        Fruit fruit1 = new Fruit();
        fruit1.setName("荔枝");
        fruit1.setArea("山东");
        fruit1.setPrice(8);
        System.out.println(fruit1);


        Fruit fruit2 = new Fruit();
        fruit2.setName("樱桃");
        fruit2.setArea("贵州");
        fruit2.setPrice(10);
        System.out.println(fruit2);


    }
}
